package com.lc.hongtai.conn;

import android.util.Log;

import com.google.gson.Gson;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

import java.util.List;

/**
 * Created by Administrator on 4/22/2016.
 */
@HttpInlet("index/hzdw")
public class JsonTeamWork extends HYAsyPost {
    public String access_token;


    public JsonTeamWork(String access_token, AsyCallBack asyCallBack) {
        super(asyCallBack);
        this.access_token = access_token;


    }


    @Override
    protected Object parser(JSONObject object) {
        Log.d(object.toString(), "111111111111111");
     /*
        if (object.optString("status").equals("1")) {

            TOAST = "添加成功！";

            return "";

        }

        TOAST = object.optString("tips");

        return null;*/
        Gson gson = new Gson();

        Info info = new Info();

        info = gson.fromJson(object.toString(), Info.class);

        return info;

    }


    public static class Info {
        public List<JsonTeamWork.Friend> friend;


    }

    public static class Friend {
        public String img;
        public String url;
        public String title;
    }


}